package com.stepforward.me;

import java.text.DecimalFormat;


public class Direction {
	private String step;
	private String time;
	private String type;
	
	public String getStep() { return step; }
	public String getTime() { return time; }
	public String getType() { return type; }
	
	public void setStep(String s) { this.step=s; }
	public void setTime(String s) { 
		float t = Float.parseFloat(s);
		t /=60;
		DecimalFormat df = new DecimalFormat("0.00");
		this.time = df.format(t)+" min ";
	}
	public void setType(String s) { this.type=s; }
	public String toString(){
		return this.step+" "+this.time+" "+this.type;
	}
}
